package com.yuyou.fn.tms.vo.resource;

import com.yuyou.fn.educational.entity.BaseGrade;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * Created by lzh on 2019/4/18.
 */
public class ResourceGrade {
    @ApiModelProperty("年级ID")
    private Long graId ;//年级ID

    @ApiModelProperty("年级名字")
    private String graName ;//年级名字

    @ApiModelProperty("0 正常(默认值) 1 已失效（已删除）")
    private Integer state ;//0 正常(默认值) 1 已失效（已删除）

    @ApiModelProperty("创建时间")
    private Date createTime ;//创建时间

    @ApiModelProperty("更新时间")
    private Date modifyTime ;//更新时间

    public ResourceGrade(BaseGrade baseGrade){
        this.setGraId(baseGrade.getGradeId());//年级ID
        this.setGraName(baseGrade.getGradeName());//年级名字
        this.setState(0);//0 正常(默认值) 1 已失效（已删除）
        this.setCreateTime(baseGrade.getCreateTime());//创建时间
        this.setModifyTime(baseGrade.getUpdateTime());//更新时间
    }

    public Long getGraId() {
        return graId;
    }

    public void setGraId(Long graId) {
        this.graId = graId;
    }

    public String getGraName() {
        return graName;
    }

    public void setGraName(String graName) {
        this.graName = graName;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }
}
